<?php
include("game/utils.php");

$sql_cards = "select * from tt_cards";
$tt_cards = mysql_query($sql_cards);
print mysql_error(); 
if(mysql_num_rows($tt_cards)>0)
{
  $td = "<TD valign='top'>%s</TD>";
  print "<p class='header'>Все Карты</p>";
  print "<TABLE border=0 cellpadding=4>";
  $i = 0;
  while($tt_card = mysql_fetch_array($tt_cards))
  {
    if($i==0)
    {
      print "<TR>";
    }
    printf($td,print_card($tt_card['id']));
    $i++;
    if($i==4)
    {
      print "</TR>";
      $i = 0;
    }
  }
  print "</TABLE>";
}
?>
